<link rel="stylesheet" href="css/aliceui.min.css"/>
<link rel="stylesheet" href="css/resetui.css"/>
<link rel="stylesheet" href="css/prod_store.css"/>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=DE946147d82abf8082f7e80868ea8afb"></script>
<div class="wrapper">
<h3 class="mc_title">
	<span class="mctit_1"><span class="mctit_2">产品发布</span></span>
</h3>
<?if(!$isedit||isset($_GET['step'])){?>
	<ol class="ui-ministep step2">
	<li class="ui-ministep-item ">
		<span class="ui-ministep-text">路线编辑</span>
	</li>
	<li class="ui-ministep-item ui-ministep-active">
		<span class="ui-ministep-text">子景点信息</span>
	</li>
	<li class="ui-ministep-item">
		<span class="ui-ministep-text">价格配置</span>
	</li>
</ol>
<?}?>

	
<div id="sceneryBox" class="ui-box mt10 fn-clear">
<?if($isedit){?>
<div class="ui-box-head">
	<h3 class="ui-box-head-title"><?=$ProdTypes[$ptype]?>信息</h3>
	<span class="ui-box-head-text"></span>
	<a href="#" class="ui-box-head-more"></a>
</div>
<?}?>
<div class="ui-box-container">
	<div class="ui-box-content">
	<form name="mainForm" id="mainForm" class="ui-form" method="post" action="call/uploadThumbImage_yunyou.php" enctype="multipart/form-data" target="hideFrame">
	<input type="hidden" name="lastid" value="<?=$jdata['id']?>"/>
	<input type="hidden" name="parent_id" value="<?=$_GET['sid']?>"/>
	<input type="hidden" name="applydid" value="<?=$apply_did?>"/>
	<input type="hidden" name="action" value="scenic"/>
	<input type="hidden" name="upload_mth" id="upload_mth" value="1"/> 
	<fieldset>

		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>景点名称
			</label>
			<!--value="<?=$jdata['title']?>"-->
			<input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w408" data-required="2" id="mainTitle" name="mainTitle" type="text" autofocus value="【测试】云游开发路线测试子票">
			<span class="ui-form-other ui-form-explain">请填写<?=$FieldList[$ptype]['title']?></span>
		</div>

		<!--显示经纬度-->
		<div id="container" style="position: absolute;margin-top:30px; width: 3px; height: 3px; display:none;top: 50; border: 1px solid gray;overflow:hidden;"></div> 

		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>所在地区
			</label>
			<input type="hidden" value="<?=$jdata['area']?>" name="area"/>
			<span id="area"></span>
		</div>
		
		<div class="land ui-form-item">
			<input type="hidden" name="child_place_tude" id="result_b"/>
			<label class="ui-label"><span class="ui-form-required">*</span>景点位置</label>
			<input class="ui-input" data-required="1" id="text_b"  name="" onBlur="searchByStationName();" type="text" value="">
			<span class="ui-form-other ui-form-explain" ></span>
			<input type="text" id="result_ab" style="border-style:none"> 
		</div>
			
		 
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>图文介绍
			</label>
			<textarea id="detailInfo" name="detailInfo" data-required="2" title="请输入<?=$FieldList[$ptype]['bhjq']['t']?>" ><?=isset($jdata['bhjq'])?:$FieldList[$ptype]['bhjq']['tp']?><?=$package_content?></textarea>
		</div>
		
		<!--thumb image-->
		<div class="ui-form-item" style="position: relative;">
			<label class="ui-label">
				<span class="ui-form-required">*</span>缩略图
			</label>
			<a class="lnk_prv" target="_blank" title="点击查看原图" href="<?=$imgUrl?>">
				<input type="hidden" name="thumb_img" class="thumb_img" value="<?=$imgUrl?>"/>
				<img style="width:240px;height:160px;" src="<?=$imgUrl?>" class="preview" />
			</a>
			<div class="uploadImg">
				<p class="title">重新上传缩略图：</p>
				<input type="file" name="upfile" id="imgup"/>
				<input type="button" id="BtnUpload" value="上传" class="ui-button ui-button-swhite"/>
				<p class="ui-form-explain">点击上传小于1M的JPG或GIF格式的图片,<br/>建议图片尺寸：宽350像素，高230像素</p>
				<p class="waitingUpload" class="ui-form-other"></p>
			</div>
			<p class="ui-form-explain">默认将使用商户提供的缩略图作为页面展示的图片</p>
		</div>
		 
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>语音
			</label>
			<a class="lnk_prv" style="display:none" target="_blank" title="" href="<?=$imgUrl?>">
				<input type="hidden" name="upfile_music" class="thumb_img" value="<?=$imgUrl?>"/>
				<img style="width:240px;height:160px;" src="<?=$imgUrl?>" class="preview" />
			</a>
			 <input type="file" name="upfile_music" id="imgup1"/>
			<input type="button" id="BtnUpload1" value="上传" class="ui-button ui-button-swhite"/>
			<p class="ui-form-explain">点击上传小于1M的MP3或aac或者wma格式的音频</p>
			<p class="waitingUpload" class="ui-form-other"></p>
			
		</div>
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>视频
			</label>
			<a class="lnk_prv" style="display:none" target="_blank" title="" href="<?=$imgUrl?>">
				<input type="hidden" name="upfile_video" class="thumb_img" value="<?=$imgUrl?>"/>
				<img style="width:240px;height:160px;" src="<?=$imgUrl?>" class="preview" />
			</a>
			 <input type="file" name="upfile_video" id="imgup2"/>
			<input type="button" id="BtnUpload2" value="上传" class="ui-button ui-button-swhite"/>
			<p class="ui-form-explain">点击上传小于5M的.mov,.mp4,.avi,.mkv格式的视频</p>
			<p class="waitingUpload" class="ui-form-other"></p>
			
		</div>
		<div class="ui-form-item">
			<label class="ui-label">
				<span class="ui-form-required">*</span>360全景
			</label>
			<a class="lnk_prv" style="display:none" href="<?=$imgUrl?>">
				<input type="hidden" name="upfile_allvideo" class="thumb_img" value="<?=$imgUrl?>"/>
				<img style="width:240px;height:160px;" src="<?=$imgUrl?>" class="preview" />
			</a>
			<input type="file" name="upfile_allvideo" id="imgup3"/> 
			<input type="button" id="BtnUpload3" value="上传" class="ui-button ui-button-swhite"/>
			<p class="ui-form-explain">点击上传小于3M的360全景文件</p>
			<p class="waitingUpload" class="ui-form-other"></p>
		</div>
		<!--thumb image-->
		<div class="ui-form-item"><?=$saveBtn?></div>
	</fieldset>
</form>
</div>
</div>
</div>
</div><!--div.wrapper-->
<ul id="mainAreas"></ul>
<iframe src="about:blank" style="display: none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>
<script src="js/jquery.getareas.js" type="text/javascript"></script>
<!-- 配置文件 -->
<script type="text/javascript" charset="utf-8" src="ue_126/ueditor_config_mini.js"></script>
<!-- 核心文件 -->
<script type="text/javascript" src="js/easydialog.min.js" ></script>
<script type="text/javascript" src="ue_126/ueditor.all.min.js"></script>
<script type="text/javascript" src="js/prod_pub.js"></script>
<script type="text/javascript" src="js/prod_editk_v3_dtdtdt.js?body=1"></script>
<?if($ptype=='B'){?>
	<script type="text/javascript" src="js/area.js"></script>
	<script type="text/javascript" src="js/area_complete.js"></script>
<?}?>
<script type="text/javascript">
var map = new BMap.Map("container");
    map.centerAndZoom("福州", 12);
    map.enableScrollWheelZoom();    //启用滚轮放大缩小，默认禁用
    map.enableContinuousZoom();    //启用地图惯性拖拽，默认禁用
    map.addControl(new BMap.NavigationControl());  //添加默认缩放平移控件
    map.addControl(new BMap.OverviewMapControl()); //添加默认缩略地图控件
    map.addControl(new BMap.OverviewMapControl({ isOpen: true, anchor: BMAP_ANCHOR_BOTTOM_RIGHT }));   //右下角，打开
   // var localSearch = new BMap.LocalSearch(map);
    var localSearchb = new BMap.LocalSearch(map);
    localSearch.enableAutoViewport(); //允许自动调节窗体大小
function searchByStationName() {
//function getVal(id) {
    map.clearOverlays();//清空原来的标注
    //var keyword = document.getElementById("text_").value;
    var keywordb = document.getElementById("text_b").value;
   
	localSearchb.setSearchCompleteCallback(function (searchResult) {
        var poi = searchResult.getPoi(0);
        document.getElementById("result_b").value = poi.point.lng + "," + poi.point.lat;
        document.getElementById("result_ab").value = poi.point.lng + "," + poi.point.lat;
		//var mapid = document.getElementById("result_").value = poi.point.lng + "," + poi.point.lat;
        map.centerAndZoom(poi.point, 13);
        var marker = new BMap.Marker(new BMap.Point(poi.point.lng, poi.point.lat));  // 创建标注，为要查询的地方对应的经纬度
        map.addOverlay(marker);
        var content = document.getElementById("text_b").value + "<br/><br/>经度：" + poi.point.lng + "<br/>纬度：" + poi.point.lat;
        var infoWindow = new BMap.InfoWindow("<p style='font-size:14px;'>" + content + "</p>");
        marker.addEventListener("click", function () { this.openInfoWindow(infoWindow); });
        marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
		//alert(mapid)
    });
   // localSearch.search(keyword);
    localSearchb.search(keywordb);
} 
</script>
    <!--日历-->
<!--    <script type="text/javascript" src="js/Calendar.js"></script>-->